
<html>
<head>
  <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  <title>张鑫</title>
    <style>#container {width:100%; height: 100%; }  </style>
</head>
<body>
<div id="container"></div>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=d610fdae0b875f484727a0babb74764f"></script>
<script>
    var map = new AMap.Map('container');
    let xmlhttp;
     xmlhttp=new XMLHttpRequest();
     xmlhttp.onreadystatechange=function()
     {
     if (xmlhttp.readyState==4 && xmlhttp.status==200)
     {
     console.log(xmlhttp.responseText)
     }
     };
     xmlhttp.open("JSONP","/api",true);
     xmlhttp.send();
</script>
</body>
</html>

